cmake_minimum_required(VERSION 2.6)
project(pose_graph)

include_directories("/usr/include/eigen3")

find_package(Sophus REQUIRED)
include_directories(${Sophus_INCLUDE_DIRS})

find_package(G2O REQUIRED)
include_directories(${G2O_INCLUDE_DIRS})

add_executable(pose_graph_g2o_SE3 pose_graph_g2o_SE3.cpp)
target_link_libraries(pose_graph_g2o_SE3
                    g2o_core g2o_stuff g2o_types_slam3d ${CHOLMOD_LIBRARIES})
                    
add_executable(pose_graph_g2o_lie pose_graph_g2o_lie_algebra.cpp)
target_link_libraries(pose_graph_g2o_lie
                    g2o_core g2o_stuff 
                    ${CHOLMOD_LIBRARIES}
                    ${Sophus_LIBRARIES}
                    )


